package basic.com.liz.learn.design.memento;

public class Original
{
    private String value;
    
    public String getValue()
    {
        return value;
    }
    
    public void setValue(String value)
    {
        this.value = value;
    }
    
    public Original(String value)
    {
        super();
        this.value = value;
    }
    
    public void storage()
    {
        new Memento(value);
    }
    
    public void restoreStorage(Memento memento)
    {
        this.value = memento.getValue();
        
    }
}
